<?php 
class ADMIN_DEFINED{
	 const ADD_RECORD 		= '_add';
	 const ADD_REVIEW 		= '_review';
	 const EDIT_RECORD 		= '_edit';
	 const DELETE_RECORD 	= '_delete';
	 const SAVE_ORDER 		= '_saveOrder';
	 const CHANGE_CATE		= '_change_cate';

 	 const SEARCH_CANDIDATE	= '_searchCandidate';
	 const SEARCH_JOB		= '_searchJob';
	 
	 const EXPORT		= '_exportExcel';
	 
	 const AJAX_LOAD_INTERVIEW = '_interview';
	 const AJAX_PRINTER = '_printer';
	 const AJAX_HISTORY = '_history';
	 const AJAX_APPLY 	= '_apply';
	 const AJAX_APPLY_SEARCH 	= '_apply_search';
	 const AJAX_PDF = '_pdf';
	 
	 const JSON_PRIVATE_HISTORY = '_private';
	 
 

	 const APPLY_INSERT		= '_candidateApplyInsert';
	 const APPLY_UPDATE		= '_candidateApplyUpdate';
	 const APPLY_DELETE		= '_candidateApplyDelete';
	 
	 const EDUCATION_GETJSON	= '_educationGetJson';
	 
	 const SET_PROMOTION 	= '_setPromotion';
	 const SET_HOT 			= '_setHot';
	 const SET_TYPICAL 		= '_setTypical';
	 const SET_HOME 		= '_setHome';
	 const SET_FILTER		= '_setFilter';
	 const SET_READMAX		= '_setReadmax';
	 
	 
	 const DISABLE			= '_disable';
	 const ENABLE			= '_enable';
	 
	 
	 
	 const FILTER			= '_filter';
	 
	 const SET_DEFAULT		= '_set_default';	 
	
	 
}
class AdminArrayData{
	/**
	 * ENABLED
	 * @return array
	 */
	public static  function getEnabled(){
		return array(
					'0'		=> __('is_enabled_0',null,'array_data'),
					'1'		=> __('is_enabled_1',null,'array_data')
				);
	}
	/**
	 * GENDER
	 * @return array
	 */
	public static  function getGender(){
		return array(
				'-1'	=> __('gender__1',null,'array_data'),
				'0'		=> __('gender_0',null,'array_data'),
				'1'		=> __('gender_1',null,'array_data')
		);
	}
	public static  function getJapanTraining(){
		return array(
				//	'-1'	=> __('married__1',null,'array_data'),
				'0'		=> __('is_japan_training_0',null,'array_data'),
				'1'		=> __('is_japan_training_1',null,'array_data')
		);
	}
	
	public static  function getMarried(){
		return array(
			//	'-1'	=> __('married__1',null,'array_data'),
				'0'		=> __('married_0',null,'array_data'),
				'1'		=> __('married_1',null,'array_data')
		);
	}
	/**
	 * WORK KIND
	 * @return array
	 */
	public static  function getWorkKind(){
		return array(
				'-1'		=>  __('work_kind__1',null,'array_data'),
				'0'		=>  __('work_kind_0',null,'array_data'),
				'1'		=>  __('work_kind_1',null,'array_data'),
			
		);
	}
	/**
	 * WORKING STATUS
	 * @return array
	 */
	public static  function getWorkingStatus(){
		return array(
				'-1'		=>  __('working_status__1',null,'array_data'),
				'0'		=>  __('working_status_0',null,'array_data'),
				'1'		=>  __('working_status_1',null,'array_data'),
				'2'		=>  __('working_status_2',null,'array_data')
		);
	}
	/**
	 * AGE RANGE
	 * @return array
	 */
	public  static function getAgeRange(){
		$arr = array();
		for($i=14; $i<=60; $i++){
			$arr[$i] = $i;
		}
		return $arr;
	}
	/**
	 * YEAR RANGE BIRTHDAY
	 * @return array
	 */
	public  static function getYearRangeBirhtday(){
		$arr = array();
		$cur = date('Y',time());
		for($i=1950; $i<=$cur-10; $i++){
			$arr[$i] = $i;
		}
		return $arr;
	}
	
	/**
	 * RECRUITING
	 * @return array
	 */
	public  static function getRecruiting(){
			return array(
					'0'		=> __('is_recruit_0',null,'array_data'),
					'1'		=> __('is_recruit_1',null,'array_data')
				);
	}
	/**
	 * IN LONG DUC CONFIRM
	 * @return array
	 */
	public  static function getInLongduc(){
		return array(
				'0'		=> __('is_in_longduc_0',null,'array_data'),
				'1'		=> __('is_in_longduc_1',null, 'array_data')
		);
	}
	/**
	 * RESULT STATUS - INTERVIEW
	 * @return array
	 */
	public  static function getResultStatus(){
		return array(
				'-1'		=> __('result_status__1',null,'array_data'),
				'0'			=> __('result_status_0',null,'array_data'),
				'1'			=> __('result_status_1',null,'array_data'),
				'2'			=> __('result_status_2',null,'array_data'), 
				'-2'		=> __('result_status__2',null,'array_data')
		);
	}
	
	/**
	 * SEARCH METHOD
	 * @return array
	 */
	
	public static function searchMethod(){
		return array(
				'0' 	=> __('search_0', null, 'array_data'),
				'1'		=> __('search_1', null, 'array_data'),
				'2'		=> __('search_2', null, 'array_data')
		);
	}
	
	
	/**
	 * JOBS SEARCH METHOD
	 * @return array
	 */
	
	public static function jobsSearchMethod(){
		return array(
				'0' 	=> __('jobsSearch_0', null, 'array_data'),
				'1'		=> __('jobsSearch_1', null, 'array_data'),
		);
	}
	
}
